/**
 * Created by IntelliJ IDEA.
 * User: ljy
 * Date: 2021/6/9
 * Time: 8:48
 */
package com.cowcode.interceptor;

import org.springframework.web.servlet.HandlerInterceptor;

import javax.interceptor.Interceptor;
import javax.interceptor.Interceptors;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class PowerInterceptor implements HandlerInterceptor {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler){
        System.out.println("拦截。。。");
        return true;//表示继续操作
    }
}
